//
//  BaseClassView.m
//  NeteaseNews
//
//  Created by liutaifeng on 16/4/13.
//  Copyright © 2016年 liutaifeng. All rights reserved.
//

#import "BaseClassView.h"
#import "IsNight.h"
@implementation BaseClassView
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        if ([IsNight nowIsNight]) {
            self.backgroundColor = [IsNight nightColor];
        }
        else {
            self.backgroundColor = [UIColor whiteColor];
        }
    }
    return self;
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
